package com.zyz.product.service;

import com.zyz.product.mapper.ProductMapper;
import com.zyz.product.model.ProductInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ProductService {
    @Autowired
    private ProductMapper productMapper;

    public ProductInfo selectProductById(Integer id) {
        log.info("接收到参数,productId：{}",id);
        return productMapper.selectByProductId(id);
    }
}
